package bytebuddys.advice;

import bytebuddys.advice.target.Cooker;
import bytebuddys.advice.target.Cooker2;
import net.bytebuddy.asm.Advice;

import java.io.IOException;

public class AdviceLogic {

    @Advice.OnMethodEnter
    public static void enter(@Advice.AllArguments Object[] args, @TestAnnotation  String  name) {

        System.out.println("");
        System.out.println("- - - - - - - - - - -");
        System.out.println("enter！ TestAnnotatio: "+ name);


    }
//
//    @Advice.OnMethodExit
//    public static int exit(@Advice.Argument(value = 0, optional = true) Object arg) {
//
//        System.out.println("");
//        System.out.println("- - - - - - - - - - -");
//        if(arg!=null){
//            System.out.println("arg0 -"+arg.getClass().getName() +" - value : "+arg.toString());
//        }
//        return 0;
//
//    }

}
